import { defHttp } from '@/utils/http/axios';

/**
 * 菜单下拉列表
 * @param params
 * @returns
 */
export function sysMenuSelect(params) {
  return defHttp.post({ url: '/sys/menu/select', params });
}
/**
 * 菜单树
 * @param params
 * @returns
 */
export function sysMenuPage(params) {
  return defHttp.post({ url: '/sys/menu/tree', params });
}
/**
 * 添加菜单
 * @param params
 * @returns
 */
export function sysMenuSave(params) {
  return defHttp.post({ url: '/sys/menu/save', params });
}
/**
 * 更新菜单
 * @param params
 * @returns
 */
export function sysMenuUpdate(params) {
  return defHttp.post({ url: '/sys/menu/update', params });
}
/**
 * 获取菜单详情
 * @param params
 * @returns
 */
export function sysMenuDetail(params) {
  return defHttp.post({ url: '/sys/menu/detail', params });
}
/**
 * 删除菜单
 * @param params
 * @returns
 */
export function sysMenuRemove(params) {
  return defHttp.post({ url: '/sys/menu/remove', params });
}
/**
 * @param params
 * @returns
 */
export function getMenuList(params) {
  return defHttp.post({ url: '/sys/user/getMenuList', params });
}
/**
 * @param params
 * @returns
 */
export function menuSyncRoute(params) {
  return defHttp.post({ url: '/sys/menu/syncRoute', params });
}
